<?php

if( ! defined('DOCROOT') )
{
    require_once '/var/www/advancelab/chilik2/unittest/bootstrap.php';
}

class InRedirectTest extends UnitTestCase
{
    function testingInRedirect()
    {
        $struct = new Entity\InRedirect();
        
        $this->assertEqual( $struct , new Entity\InRedirect() );
        
        $struct->request = 'php';
        $this->assertEqual( 'php', $struct->request );
        
        /* $this->dump($struct); */
    }
    
    function testingMockingMethod()
    {
        $state = array(
        'request' => 'php',
        );
        
        $struct = Entity\InRedirect::__mock( $state );
        $this->assertEqual( 'php', $struct->request );
    }    
}
